package com.usian.article.controller;

import com.usian.api.behavior.ApCollectionBehaviorControllerApi;
import com.usian.api.behavior.ApReadBehaviorControllerApi;

import com.usian.article.service.ApCollectionBehaviorService;
import com.usian.model.article.dtos.CollectionBehaviorDto;
import com.usian.model.behavior.dtos.ReadBehaviorDto;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/collection_behavior")
public class ApCollectionBehaviorController implements ApCollectionBehaviorControllerApi {

    @Autowired
    private ApCollectionBehaviorService apCollectionBehaviorService;

    @PostMapping
    @Override
    public ResponseResult collectionBehavior(@RequestBody CollectionBehaviorDto dto) {
        return apCollectionBehaviorService.collectionBehavior(dto);
    }


}